//change to ASCII 

import java.io.*;
import java.util.*;

public class Main{
	public static void main(String[] args){
		try{
			FileReader filereader=new FileReader(args[0]);
			FileWriter filewriter=new FileWriter(args[0]+"_1");

			int in=0;
			char[] wlnchar={'\r','\n'};
			
			while((in=filereader.read())!=-1){
				if(in=='\n'){
					filewriter.write(wlnchar);
				}
				else if(in=='1'){
					filewriter.write('2');
				}
				else{
					filewriter.write(in);
				}
				System.out.println(in);
			}

			filereader.close();
			filewriter.close();
		}
		catch(ArrayIndexOutOfBoundsException e){
			e.printStackTrace();
		}
		catch(IOException e){
			e.printStackTrace();
		}
	}
}